//_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/.
// 			VisualNovelToolkit		     /_/_/_/_/_/_/_/_/_/.
// Copyright ©2013 - Sol-tribe.	/_/_/_/_/_/_/_/_/_/.
//_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/.
using UnityEngine;
using System.Collections.Generic;

public class ByteCodesUtil {

/*
	[ System.Obsolete ]
	static public void ExtractFuncPosInCodesOf( VM vm ){		
		// Collect Func Info , and Func Table is initialized.
		Dictionary<string,FuncInfo> funcTable = new Dictionary<string, FuncInfo>();
		for( int pc=0;pc<vm.code.Length;pc++){
			if( vm.code[ pc ] == Opcode.FUNC ){
				pc = ByteCodeReader.readFunc( vm.code , pc , funcTable) ;					
				pc--;
			}
		}		
		vm.funcTable = funcTable;
		ViNoDebugger.Log( "VM" , "Func Count:" + funcTable.Keys.Count );			
		foreach( string key in funcTable.Keys ){			
			ViNoDebugger.Log ( "VM" , "Func : " + key + "and entry pos:" + funcTable[ key ].m_PcEntry );	
		}	
	}
//*/
	
}
